﻿<Window xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"  x:Class="ListOfTale.ChartViewer"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Графики. Кол-во авторской и народной сказки" Height="300" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="300*"></RowDefinition>
            <RowDefinition Height="100"/>
        </Grid.RowDefinitions>
        <chartingToolkit:Chart Grid.ColumnSpan="2" x:Name="StatChart" >
            <chartingToolkit:Chart.Series>
                <chartingToolkit:LineSeries DependentValuePath="Y" IndependentValuePath="X" 
                 Title="">
                    <chartingToolkit:LineSeries.DataPointStyle>
                        <Style TargetType="{x:Type chartingToolkit:LineDataPoint}">
                            <Setter Property="Visibility" Value="Visible"/>
                        </Style>
                    </chartingToolkit:LineSeries.DataPointStyle>
                </chartingToolkit:LineSeries>

                <chartingToolkit:LineSeries DependentValuePath="Y" IndependentValuePath="X"  Title=""        >
                    <chartingToolkit:LineSeries.DataPointStyle>
                        <Style TargetType="{x:Type chartingToolkit:LineDataPoint}">
                            <Setter Property="Visibility" Value="Visible"/>
                        </Style>
                    </chartingToolkit:LineSeries.DataPointStyle>
                </chartingToolkit:LineSeries>
            </chartingToolkit:Chart.Series>
        </chartingToolkit:Chart>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <ComboBox  x:Name="DataTypeCmb" Height="25" >
 
            </ComboBox>
            <Button x:Name="btnRefresh" Grid.Row="1" Height="25" Content="Обновить" Click="btnRefresh_Click"/>
            <StackPanel Orientation="Horizontal" Grid.Column="1">
                <Label Height="25" Margin="5" Width="25">
                    C
                </Label>
                <ComboBox x:Name="StartYearCmb" Width="100" Height="25" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1">
                <Label Height="25" Margin="5" Width="25">
                    По
                </Label>
                <ComboBox x:Name="EndYearCombobox" Height="25" Width="100" />
            </StackPanel>
        </Grid>
    </Grid>
</Window>
